<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: pepr3d::CommandManager&lt; Target &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpepr3d_1_1_command_manager.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classpepr3d_1_1_command_manager-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pepr3d::CommandManager&lt; Target &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classpepr3d_1_1_command_manager.html" title="CommandManager handles all undoable operations on target in the form of commands See.">CommandManager</a> handles all undoable operations on target in the form of commands See.  
 <a href="classpepr3d_1_1_command_manager.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_command_manager_8h_source.html">CommandManager.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_command_manager_1_1_snapshot_pair.html">SnapshotPair</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saved states of the target and commandId after them.  <a href="structpepr3d_1_1_command_manager_1_1_snapshot_pair.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ae3090192cabdd49b5bc0b8f983a6681a"><td class="memItemLeft" align="right" valign="top"><a id="ae3090192cabdd49b5bc0b8f983a6681a"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>CommandBaseType</b> = <a class="el" href="classpepr3d_1_1_command_base.html">CommandBase</a>&lt; Target &gt;</td></tr>
<tr class="separator:ae3090192cabdd49b5bc0b8f983a6681a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff7ffff59dcc764edce1bb4cbbe18704"><td class="memItemLeft" align="right" valign="top"><a id="aff7ffff59dcc764edce1bb4cbbe18704"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>StateType</b> = decltype(std::declval&lt; const Target &gt;().saveState())</td></tr>
<tr class="separator:aff7ffff59dcc764edce1bb4cbbe18704"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa4545583769603c741a2dab3e876a5fb"><td class="memItemLeft" align="right" valign="top"><a id="aa4545583769603c741a2dab3e876a5fb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#aa4545583769603c741a2dab3e876a5fb">CommandManager</a> (Target &amp;target)</td></tr>
<tr class="memdesc:aa4545583769603c741a2dab3e876a5fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a command manager that will be operating around a snapshottable target. <br /></td></tr>
<tr class="separator:aa4545583769603c741a2dab3e876a5fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0aae9681640f09da9c908154b805273e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a0aae9681640f09da9c908154b805273e">execute</a> (std::unique_ptr&lt; <a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &gt; &amp;&amp;command, bool join=false)</td></tr>
<tr class="memdesc:a0aae9681640f09da9c908154b805273e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Execute a command, saving it into a history and removing all currently redoable commands.  <a href="#a0aae9681640f09da9c908154b805273e">More...</a><br /></td></tr>
<tr class="separator:a0aae9681640f09da9c908154b805273e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af71406e4f6aee85b1cb9fe02b9a8b13e"><td class="memItemLeft" align="right" valign="top"><a id="af71406e4f6aee85b1cb9fe02b9a8b13e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#af71406e4f6aee85b1cb9fe02b9a8b13e">undo</a> ()</td></tr>
<tr class="memdesc:af71406e4f6aee85b1cb9fe02b9a8b13e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Undo a single command operation. <br /></td></tr>
<tr class="separator:af71406e4f6aee85b1cb9fe02b9a8b13e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb90e67e6e97c0d143ddb9e67ccbebb2"><td class="memItemLeft" align="right" valign="top"><a id="acb90e67e6e97c0d143ddb9e67ccbebb2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#acb90e67e6e97c0d143ddb9e67ccbebb2">redo</a> ()</td></tr>
<tr class="memdesc:acb90e67e6e97c0d143ddb9e67ccbebb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Redo a single command (if possible) <br /></td></tr>
<tr class="separator:acb90e67e6e97c0d143ddb9e67ccbebb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d53a763697329e206e72ddeef1ce75b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a2d53a763697329e206e72ddeef1ce75b">canUndo</a> () const</td></tr>
<tr class="memdesc:a2d53a763697329e206e72ddeef1ce75b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is there a command that can be undoed?  <a href="#a2d53a763697329e206e72ddeef1ce75b">More...</a><br /></td></tr>
<tr class="separator:a2d53a763697329e206e72ddeef1ce75b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ae3625cc0baac8bb27f659ee0182eff"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a2ae3625cc0baac8bb27f659ee0182eff">canRedo</a> () const</td></tr>
<tr class="memdesc:a2ae3625cc0baac8bb27f659ee0182eff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is there a command that can be redoed?  <a href="#a2ae3625cc0baac8bb27f659ee0182eff">More...</a><br /></td></tr>
<tr class="separator:a2ae3625cc0baac8bb27f659ee0182eff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dc9b90a3f5a6f14502999187a9d45ef"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a1dc9b90a3f5a6f14502999187a9d45ef">getLastCommand</a> () const</td></tr>
<tr class="memdesc:a1dc9b90a3f5a6f14502999187a9d45ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get last command that was executed (ie the command to be undoed)  <a href="#a1dc9b90a3f5a6f14502999187a9d45ef">More...</a><br /></td></tr>
<tr class="separator:a1dc9b90a3f5a6f14502999187a9d45ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5767a90a4f309d166210a8e43dec560"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#ab5767a90a4f309d166210a8e43dec560">getNextCommand</a> () const</td></tr>
<tr class="memdesc:ab5767a90a4f309d166210a8e43dec560"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get next command to be redoed if it exists.  <a href="#ab5767a90a4f309d166210a8e43dec560">More...</a><br /></td></tr>
<tr class="separator:ab5767a90a4f309d166210a8e43dec560"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95e84353863839ebded5131aef0c06b9"><td class="memItemLeft" align="right" valign="top"><a id="a95e84353863839ebded5131aef0c06b9"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a95e84353863839ebded5131aef0c06b9">getVersionNumber</a> () const</td></tr>
<tr class="memdesc:a95e84353863839ebded5131aef0c06b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current version number, used to compare any dirty unsaved changes. <br /></td></tr>
<tr class="separator:a95e84353863839ebded5131aef0c06b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ae889dad593d812deb65c56c07a32bfdb"><td class="memItemLeft" align="right" valign="top"><a id="ae889dad593d812deb65c56c07a32bfdb"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#ae889dad593d812deb65c56c07a32bfdb">SNAPSHOT_FREQUENCY</a> = 10</td></tr>
<tr class="memdesc:ae889dad593d812deb65c56c07a32bfdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">How often snapshots of the target should be saved (at minimum) <br /></td></tr>
<tr class="separator:ae889dad593d812deb65c56c07a32bfdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a9813d0996dc75f8a5f95ea6bb5627348"><td class="memItemLeft" align="right" valign="top"><a id="a9813d0996dc75f8a5f95ea6bb5627348"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clearFutureState</b> ()</td></tr>
<tr class="separator:a9813d0996dc75f8a5f95ea6bb5627348"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f8002ebe6e7f1beb7f6176d424bae50"><td class="memItemLeft" align="right" valign="top"><a id="a5f8002ebe6e7f1beb7f6176d424bae50"></a>
auto&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a5f8002ebe6e7f1beb7f6176d424bae50">getPrevSnapshotIterator</a> () const -&gt; decltype(std::declval&lt; const std::vector&lt; <a class="el" href="structpepr3d_1_1_command_manager_1_1_snapshot_pair.html">SnapshotPair</a> &gt;&gt;().begin())</td></tr>
<tr class="memdesc:a5f8002ebe6e7f1beb7f6176d424bae50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get snapshot before current state. <br /></td></tr>
<tr class="separator:a5f8002ebe6e7f1beb7f6176d424bae50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96a37fef29ecd232b90da0612b402310"><td class="memItemLeft" align="right" valign="top"><a id="a96a37fef29ecd232b90da0612b402310"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a96a37fef29ecd232b90da0612b402310">shouldSaveState</a> () const</td></tr>
<tr class="memdesc:a96a37fef29ecd232b90da0612b402310"><td class="mdescLeft">&#160;</td><td class="mdescRight">Should we save state before next command. <br /></td></tr>
<tr class="separator:a96a37fef29ecd232b90da0612b402310"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40345eec97e82997c3e3a0f231185e30"><td class="memItemLeft" align="right" valign="top"><a id="a40345eec97e82997c3e3a0f231185e30"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a40345eec97e82997c3e3a0f231185e30">joinWithLastCommand</a> (<a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &amp;command)</td></tr>
<tr class="memdesc:a40345eec97e82997c3e3a0f231185e30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Join this command with the last one. <br /></td></tr>
<tr class="separator:a40345eec97e82997c3e3a0f231185e30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a231ac7e910086a522676323b69b9c4"><td class="memItemLeft" align="right" valign="top"><a id="a9a231ac7e910086a522676323b69b9c4"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>getNumOfCommandsSinceSnapshot</b> () const</td></tr>
<tr class="separator:a9a231ac7e910086a522676323b69b9c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc272c27fa76a577f4af8fd863d70368"><td class="memItemLeft" align="right" valign="top"><a id="abc272c27fa76a577f4af8fd863d70368"></a>
<a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getLastCommand</b> ()</td></tr>
<tr class="separator:abc272c27fa76a577f4af8fd863d70368"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a9a6320349ad160fa9ca7a6c83fa2802a"><td class="memItemLeft" align="right" valign="top"><a id="a9a6320349ad160fa9ca7a6c83fa2802a"></a>
Target &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>mTarget</b></td></tr>
<tr class="separator:a9a6320349ad160fa9ca7a6c83fa2802a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55847061c90eb00139370aa16d88a52a"><td class="memItemLeft" align="right" valign="top"><a id="a55847061c90eb00139370aa16d88a52a"></a>
std::vector&lt; std::unique_ptr&lt; <a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a55847061c90eb00139370aa16d88a52a">mCommandHistory</a></td></tr>
<tr class="memdesc:a55847061c90eb00139370aa16d88a52a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executed and possibly future commands. <br /></td></tr>
<tr class="separator:a55847061c90eb00139370aa16d88a52a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13e29779a7f1d4464306c952b96f0e94"><td class="memItemLeft" align="right" valign="top"><a id="a13e29779a7f1d4464306c952b96f0e94"></a>
std::vector&lt; <a class="el" href="structpepr3d_1_1_command_manager_1_1_snapshot_pair.html">SnapshotPair</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>mTargetSnapshots</b></td></tr>
<tr class="separator:a13e29779a7f1d4464306c952b96f0e94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1b91a069626a707e392bdb92772a487"><td class="memItemLeft" align="right" valign="top"><a id="ae1b91a069626a707e392bdb92772a487"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#ae1b91a069626a707e392bdb92772a487">mPosFromEnd</a> = 0</td></tr>
<tr class="memdesc:ae1b91a069626a707e392bdb92772a487"><td class="mdescLeft">&#160;</td><td class="mdescRight">Position from end of the stack. <br /></td></tr>
<tr class="separator:ae1b91a069626a707e392bdb92772a487"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c73b4cacd523878dbef2cb7ed4805fa"><td class="memItemLeft" align="right" valign="top"><a id="a4c73b4cacd523878dbef2cb7ed4805fa"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_manager.html#a4c73b4cacd523878dbef2cb7ed4805fa">mVersion</a> = 0</td></tr>
<tr class="memdesc:a4c73b4cacd523878dbef2cb7ed4805fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cumulative version number which gets incremented every single time a command is executed or Undo/Redo is done. <br /></td></tr>
<tr class="separator:a4c73b4cacd523878dbef2cb7ed4805fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Target&gt;<br />
class pepr3d::CommandManager&lt; Target &gt;</h3>

<p><a class="el" href="classpepr3d_1_1_command_manager.html" title="CommandManager handles all undoable operations on target in the form of commands See.">CommandManager</a> handles all undoable operations on target in the form of commands See. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classpepr3d_1_1_command_base.html" title="CommandBase is a base class for commands representing a single undoable operation....">CommandBase</a>. All commands must be executed via the <a class="el" href="classpepr3d_1_1_command_manager.html" title="CommandManager handles all undoable operations on target in the form of commands See.">CommandManager</a> Requirements for Target: Target must have a saveState() and loadState(State) methods </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a2ae3625cc0baac8bb27f659ee0182eff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ae3625cc0baac8bb27f659ee0182eff">&#9670;&nbsp;</a></span>canRedo()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Target &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classpepr3d_1_1_command_manager.html">pepr3d::CommandManager</a>&lt; Target &gt;::canRedo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Is there a command that can be redoed? </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classpepr3d_1_1_command_manager.html#ab5767a90a4f309d166210a8e43dec560" title="Get next command to be redoed if it exists.">getNextCommand()</a> </dd></dl>

</div>
</div>
<a id="a2d53a763697329e206e72ddeef1ce75b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d53a763697329e206e72ddeef1ce75b">&#9670;&nbsp;</a></span>canUndo()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Target &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classpepr3d_1_1_command_manager.html">pepr3d::CommandManager</a>&lt; Target &gt;::canUndo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Is there a command that can be undoed? </p>
<dl class="section see"><dt>See also</dt><dd>getLastCommand() </dd></dl>

</div>
</div>
<a id="a0aae9681640f09da9c908154b805273e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0aae9681640f09da9c908154b805273e">&#9670;&nbsp;</a></span>execute()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Target &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpepr3d_1_1_command_manager.html">pepr3d::CommandManager</a>&lt; Target &gt;::execute </td>
          <td>(</td>
          <td class="paramtype">std::unique_ptr&lt; <a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>join</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Execute a command, saving it into a history and removing all currently redoable commands. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">join</td><td>Try to join this command into the last one </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1dc9b90a3f5a6f14502999187a9d45ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1dc9b90a3f5a6f14502999187a9d45ef">&#9670;&nbsp;</a></span>getLastCommand()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Target &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classpepr3d_1_1_command_manager.html">CommandManager</a>&lt; Target &gt;::<a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &amp; <a class="el" href="classpepr3d_1_1_command_manager.html">pepr3d::CommandManager</a>&lt; Target &gt;::getLastCommand </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get last command that was executed (ie the command to be undoed) </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classpepr3d_1_1_command_manager.html#a2d53a763697329e206e72ddeef1ce75b" title="Is there a command that can be undoed?">canUndo()</a> </dd></dl>

</div>
</div>
<a id="ab5767a90a4f309d166210a8e43dec560"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5767a90a4f309d166210a8e43dec560">&#9670;&nbsp;</a></span>getNextCommand()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Target &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classpepr3d_1_1_command_manager.html">CommandManager</a>&lt; Target &gt;::<a class="el" href="classpepr3d_1_1_command_base.html">CommandBaseType</a> &amp; <a class="el" href="classpepr3d_1_1_command_manager.html">pepr3d::CommandManager</a>&lt; Target &gt;::getNextCommand </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get next command to be redoed if it exists. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classpepr3d_1_1_command_manager.html#a2ae3625cc0baac8bb27f659ee0182eff" title="Is there a command that can be redoed?">canRedo()</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/commands/<a class="el" href="_command_manager_8h_source.html">CommandManager.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacepepr3d.html">pepr3d</a></li><li class="navelem"><a class="el" href="classpepr3d_1_1_command_manager.html">CommandManager</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
